package com.xiaoq.shop.entity;

import com.xiaoq.MongoEntity;
import org.mongodb.morphia.annotations.Entity;

/**
 * Created by chenjh on 2017/12/1.
 */
@Entity(value = "simple_lock" ,noClassnameStored = true)
public class SimpleLock extends MongoEntity {

    /** targetId. */
    private String targetId;

    /** 锁状态. 【1、锁，0：没锁】*/
    private Integer lockStatus;

    /** 锁过期时间. */
    private Long lockExpireTime;

	public String getTargetId() {
		return targetId;
	}

	public void setTargetId(String targetId) {
		this.targetId = targetId;
	}

	public Integer getLockStatus() {
		return lockStatus;
	}

	public void setLockStatus(Integer lockStatus) {
		this.lockStatus = lockStatus;
	}

	public Long getLockExpireTime() {
		return lockExpireTime;
	}

	public void setLockExpireTime(Long lockExpireTime) {
		this.lockExpireTime = lockExpireTime;
	}

}
